Components › Forms & input › Date & time › Date range

Date range

canon

Paired inputs for a from–to date span with presets.

Used in 4 files · 3 areas · 5× — components/clen-tymu, components/segment, pages/DovolenePage

Default

–
components--date-range--defaultOpen standalone ↗Code

Variants

–
closed — 14. 7. – 21. 7.
–
open end — od 1. 8.
–
open start — do 28. 7.
–
across years — 15. 12. – 10. 1. 27
components--date-range--variantsOpen standalone ↗Code

States

–
empty (placeholders od / do)
–
filled
–
error
–
disabled
Focus: `.dp-field:focus-within` draws the accent border + 3px accent ring around both ends. A start typed after the end is swapped, never left invalid.
components--date-range--statesOpen standalone ↗Code

Composition

–
report filter — label from <Field>, apply button
–31 dní
panel header (static .dp-entry.pair) — ends + day count
components--date-range--compositionOpen standalone ↗Code